filterIsInstance

inline fun <R> filterIsInstance(): Try<R>

Returns the same Success casted to type R if it is R. Otherwise returns a Failure.

Return

The same Success casted to type R if it is R. Otherwise returns a Failure.

Parameters

R

Required type of the optional value.